import request from '@/utils/request.js'

// 新建项目
export function newProject(params) {
  return request.get('/data/ed/user/prj/create', { params })
}
// 获取所有项目
export function getAllProject() {
  return request.get('/data/ed/user/prj/queryAll')
}
// 删除项目
export function deleteProject(params) {
  return request.get('/data/ed/user/prj/delete', { params })
}
// 删除子集
export function deleteProjectNode(params) {
  return request.get('/data/ed/user/prj/deleteFolder', { params })
}
// 修改项目名称
export function renameProject(params) {
  return request.get('/data/ed/user/prj/modify', { params })
}
// 发布项目
export function publishProject(params) {
  return request.get('/data/ed/user/prj/publish', { params })
}
// 沿用项目
export function useProject(params) {
  return request.get('/data/ed/user/prj/follow', { params })
}
// 新建子集
export function addNode(params) {
  return request.get('/data/ed/user/prj/addFolder', { params })
}
// 修改子集名称
export function renameNode(params) {
  return request.get('/data/ed/user/prj/modifyFolder', { params })
}
// 子集重排序
export function folderResort(data) {
  return request.post('/data/ed/user/prj/folderResort', data)
}
// 获取项目发布状态
export function getPrjStatus(data) {
  return request.post('/data/ed/user/prj/publishStatus', data)
}
